﻿using System;

class Program
{
    static void Main()
    {
        string str = Console.ReadLine();
        char[] c=str.ToCharArray();
        string rev = string.Empty;
        for (int i = c.Length-1; i > -1; i--)
        {
            rev += c[i];

        }
        Console.WriteLine(rev);
    }
}
